package icu.cocoon.work.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import icu.cocoon.dao.base.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.ToString;

@ToString
@AllArgsConstructor
public enum ApproveStatus implements BaseEnum<Integer> {

  DEFAULT(0, "未处理"),
  PASSED(1, "已通过"),
  REJECTED(2, "被拒绝");

  @EnumValue
  @JsonValue
  private final int value;

  private final String desc;

  @Override
  public BaseEnum<Integer>[] getEnums() {
    return values();
  }

  @Override
  public Integer getValue() {
    return this.value;
  }
}
